package com.lifep.collect.platform.module.classloader;

import org.springframework.beans.CachedIntrospectionResults;

import java.util.ResourceBundle;

public class ClassLoaderCaches {

    private ClassLoaderCaches() {
    }

    /**
     * classloader相关的缓存
     */
    public static void clear(ClassLoader classLoader) {
        java.beans.Introspector.flushCaches();
        ResourceBundle.clearCache(classLoader);
        CachedIntrospectionResults.clearClassLoader(classLoader);
    }
}